package com.ruoyi;

import com.sun.javafx.scene.shape.PathUtils;

import java.io.IOException;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws IOException {





        String command="mysqldump -h 127.0.0.1 -P 3306 -u root -p123456  a0723 > D:\\ruoyi\\sql\\a0723.sql" ;
        //linux下：


        String[] commands= { "/bin/sh", "-c", command };

        // windows下：
        commands = new String[]{"cmd", "/c", command};
        Runtime runtime = Runtime.getRuntime();
        runtime.exec(commands);
    }
}
